package com.wushi.lenovo.asia5b.app_model.good.goodbean;

import android.text.TextUtils;

import com.mvp.base.model.BaseModel;

import java.io.Serializable;

/**
 * Created by zhangyuncai on 2020/3/13.
 */
public abstract class GoodsModelIml extends BaseModel implements Serializable {
    public String containsRM(String price) {
        if (!TextUtils.isEmpty(price) && price.toUpperCase().contains("RM")) {
            return String.format("%s", price);
        }
        return String.format("RM %s", price);
    }

    public String containsKG(String weight) {
        if (!TextUtils.isEmpty(weight) && weight.toUpperCase().contains("KG")) {
            return String.format("%s", weight);
        }
        return String.format("%s KG", weight);
    }

    public String containsM3(String vol) {
        if (!TextUtils.isEmpty(vol) && vol.toUpperCase().contains("M")) {
            return String.format("%s", vol);
        }
        return String.format("%s M³", vol);
    }

    //商品名
    public abstract String goodsName();

    //商品id
    public abstract int goodsId();

    //商品地址
    public abstract String goodsImg();

    //包裹号
    public abstract int parcelno();

    //详细
    public abstract String goodsAttr();

    //单价带单位
    public abstract String goodsUnitPrice();

    //总价带单位,如果付款,就是付款总价=单价*数量+其他费用
    public abstract String goodsTotalPrice();

    //数量
    public abstract int goodsQuantity();

    //是否敏感
    public abstract boolean isMingan();

    //中国物流费用带单位
    public abstract String chinaDeliveryFee();

    //中国物流差价费用带单位
    public String chinaDiffDeliveryFee() {
        return "";
    }

    //该商品补差价费用带单位
    public String diffPrice() {
        return null;
    }

    //该商品补差价总费用带单位=商品售卖差价+运费差价+其他
    public abstract String totalDiffPrice();

    //价格详情/包裹详情的总计价格
    public abstract String zongjiPrice();

    //总重量带单位
    public abstract String goodsTotalWeight();

    //总体积重量带单位
    public abstract String goodsTotalVolWeight();

    //总立方米带单位
    public abstract String goodsTotalM3Weight();

    //已存储时间
    public String getStorage_day_num() {
        return null;
    }

    //最多存储时间
    public int getStorage_total_days() {
        return 0;
    }

    //备注
    public String getRemark() {
        return "";
    }

}
